/*
 * @Author: Tendo
 * @Date: 2022-04-25 14:21:11
 * @LastEditTime: 2022-04-25 15:45:28
 * @LastEditors: Tendo
 * @Description: 
 * @FilePath: \algorithm_-js\TS\工具类型.ts
 */

interface Person {
    name: string
    age: number
    job?: string
}
type person = Partial<Person>

type person1 = Record<keyof Person, "V">

type person2 = Pick<Person, 'name' | 'age' >

type person3 = Readonly<Person>

type person4 = Exclude<keyof Person, "name" | "job">

type person5 = Omit<Person, 'name' | 'age' >

type person6 = Required<Person>

type person7 = Extract<keyof Person, "name">